package jgl.vajra.operator.part.mine.contract;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.operator.bean.MyCarListBean;
import jgl.vajra.operator.databinding.FragmentBaseListBinding;
import jgl.vajra.operator.widget.mvvm.model.BaseModel;
import jgl.vajra.operator.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.operator.widget.mvvm.viewmodel.BaseViewModel;

public class MyCarListContract {
    public abstract static class Model extends BaseModel {
        public abstract Observable getMyCarList(Map<String, Object> map);

        public abstract Observable<String> deleteDriverCertificate(Map<String, Object> map);
    }

    public interface View extends BaseMVVMView {

        void onDeleteCar(int position ,MyCarListBean itemData);

        void onDetails(MyCarListBean itemData);

        void returnDeleteDriverCertificate(String data);
    }

    public abstract static class ViewModel extends BaseViewModel<View, FragmentBaseListBinding, Model> {
        public abstract Observable getMyCarList(Map<String, Object> map);

        public abstract void deleteDriverCertificate(Map<String, Object> map);
    }
}
